package com.tanchengjin.admin.modules.blog.config.jwt;

public class JWTSuccessResponse {
    private String access_token;
    private String token_type;
    private String refresh_token;
    private long expire_in;

    private JWTSuccessResponse(String access_token, String token_type, String refresh_token, long expire_in) {
        this.access_token = access_token;
        this.token_type = token_type;
        this.refresh_token = refresh_token;
        this.expire_in = expire_in;
    }

    public static JWTSuccessResponse response(String access_token, String token_type, String refresh_token, long expire_in) {
        return new JWTSuccessResponse(access_token, token_type, refresh_token, expire_in);
    }

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getToken_type() {
        return token_type;
    }

    public void setToken_type(String token_type) {
        this.token_type = token_type;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public long getExpire_in() {
        return expire_in;
    }

    public void setExpire_in(long expire_in) {
        this.expire_in = expire_in;
    }
}
